package com.ruoyi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 能源价格
 * @TableName ny3
 */
@TableName(value ="ny3")
@Data
public class Ny3 implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 能源类型
     */
    private String ny;

    /**
     * 能源价格（万/吨）
     */
    private Long nyxhl3;

    /**
     * 时间范围（日/周/月/年）
     */
    private String sjfw3;

    /**
     * 地域范围
     */
    private String dyfw3;

    /**
     * 能源价格趋势
     */
    private Long nyxhqs3;

    /**
     * 能源价格预测
     */
    private Long nyxhpm3;

    /**
     * 能源价格因素
     */
    private String ys3;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ny3 other = (Ny3) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNy() == null ? other.getNy() == null : this.getNy().equals(other.getNy()))
            && (this.getNyxhl3() == null ? other.getNyxhl3() == null : this.getNyxhl3().equals(other.getNyxhl3()))
            && (this.getSjfw3() == null ? other.getSjfw3() == null : this.getSjfw3().equals(other.getSjfw3()))
            && (this.getDyfw3() == null ? other.getDyfw3() == null : this.getDyfw3().equals(other.getDyfw3()))
            && (this.getNyxhqs3() == null ? other.getNyxhqs3() == null : this.getNyxhqs3().equals(other.getNyxhqs3()))
            && (this.getNyxhpm3() == null ? other.getNyxhpm3() == null : this.getNyxhpm3().equals(other.getNyxhpm3()))
            && (this.getYs3() == null ? other.getYs3() == null : this.getYs3().equals(other.getYs3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNy() == null) ? 0 : getNy().hashCode());
        result = prime * result + ((getNyxhl3() == null) ? 0 : getNyxhl3().hashCode());
        result = prime * result + ((getSjfw3() == null) ? 0 : getSjfw3().hashCode());
        result = prime * result + ((getDyfw3() == null) ? 0 : getDyfw3().hashCode());
        result = prime * result + ((getNyxhqs3() == null) ? 0 : getNyxhqs3().hashCode());
        result = prime * result + ((getNyxhpm3() == null) ? 0 : getNyxhpm3().hashCode());
        result = prime * result + ((getYs3() == null) ? 0 : getYs3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ny=").append(ny);
        sb.append(", nyxhl3=").append(nyxhl3);
        sb.append(", sjfw3=").append(sjfw3);
        sb.append(", dyfw3=").append(dyfw3);
        sb.append(", nyxhqs3=").append(nyxhqs3);
        sb.append(", nyxhpm3=").append(nyxhpm3);
        sb.append(", ys3=").append(ys3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}